<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<p>
	<c:if test="${not empty denominationsList}">
		<table border="1">
			<tr>
				<th>DENOMINATION NAME</th>
				<th>ADDED(MM/YYYY)</th>
				<th>ACTIONS</th>
			</tr>
			<c:forEach var="listValue" items="${denominationsList}">
				<tr>
					<td>${listValue.denominationName}</td>
					<td>${listValue.month}/${listValue.year}</td>
					<td><a
						href="<%=request.getContextPath()%>/admin/denomination/editDenomination/${listValue.denominationId}">EDIT</a>&nbsp;
						<c:choose>
							<c:when test="${listValue.denominationActive=='A'}">
								<span id="active"><a
									href="<%=request.getContextPath()%>/admin/denomination/deactivateDenomination/${listValue.denominationId}"
									id="action">DEACTIVATE</a></span>
							</c:when>
							<c:when test="${listValue.denominationActive=='D'}">
								<span id="inactive"><a
									href="<%=request.getContextPath()%>/admin/denomination/activateDenomination/${listValue.denominationId}"
									id="action">ACTIVATE</a></span>
							</c:when>
						</c:choose>
						</td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</p>